Add --squash-history option - #127
Conversation
This option is similar to --no-history (avoid bloating the repository size) but keep data. We squash all commits from gh-pages branch filtered on the current commit message. This allow workflows like keeping commits and data for a released doc and always override nightlies documentations.
|
Initial commit, openning PR for discussion. Know issues or things to test:
Tested on Linux with: |
Add env var FILTER_BRANCH_SQUELCH_WARNING to avoid warnings and temporisation when git-filter is called.
|
About Windows, this is working with my current git installation: https://gitforwindows.org/ + recommended setup option to add third-party tools in PATH (by default setup option). We may want to add a note in documentation, or just keep it like this. |
|
Playing with GitHub actions, I see Flake8 results, fixed above. For my Github actions tests, I need to remove Python 2.7 checks, updating Python versions to 3.7 and 3.12. See: https://github.com/framillien/ghp-import/actions/runs/7657957284 |
|
Apologies for the delay. Code LGTM. Could you also add your CI fixes to this PR and then I'll merge. Thank you. |
Avoid deprecated Python version 2.7, being removed from GitHub Actions images.
Issue: #126
This option is similar to --no-history (avoid bloating the repository size) but keep data. We squash all commits from gh-pages branch filtered on the current commit message.
This allow workflows like keeping commits and data for a released doc and always override nightlies documentations.